package com.tianhao.luo.decorator;

/**
 * @ClassName: ConcreteDecorator2
 * @Description: 新功能：滤镜
 * @author: tianhao.luo@hand-china.com
 * @date: 2020/7/1  16:07
 */
class ConcreteDecorator2 extends Decorator {

    public ConcreteDecorator2(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        //调用原有功能
        component.operation();
        //实现新功能
        System.out.println("新增功能：滤镜");
    }
}
